<template>
  <ContentWrap>
    <el-descriptions>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="红娘头像" class="v-top" />
        </template>
        <el-image style="width: 100px; height: 100px" :src="data?.merchantCover" fit="fill" />
      </el-descriptions-item>
    </el-descriptions>
    <el-descriptions :column="2">
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="订单编码" />
        </template>
        {{ data.no }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="昵称" />
        </template>
        {{ data.name }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="手机号" />
        </template>
        {{ data.phone }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="累计会员" />
        </template>
        {{ data.memberNum }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="本月会员" />
        </template>
        {{ data.monthMemberNum }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="牵线总数(次)" />
        </template>
        {{ data.stringingTotalNum }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="本月牵线(次)" />
        </template>
        {{ data.stringingMonthNum }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="创建时间" />
        </template>
        {{ formatDate(data.createTime) }}
      </el-descriptions-item>
    </el-descriptions>
    <el-descriptions>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="介绍" />
        </template>
        {{ data.merchantIntro }}
      </el-descriptions-item>
    </el-descriptions>
  </ContentWrap>
</template>
<script setup lang="ts">
import { formatDate } from '@/utils/formatTime'

const { data } = defineProps<{ data }>()
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
